/**
 * 商家数据路由
 * @description 商家数据相关的路由配置
 */
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {CumulativeIncomeComponent} from "./cumulative-income/cumulative-income.component";
import {LeftDayIncomeComponent} from "./left-day-income/left-day-income.component";
import {RealIncomeComponent} from "./real-income/real-income.component";
import {TotalTurnoverComponent} from "./total-turnover/total-turnover.component";
import {TodayEarningsListComponent} from "./today-earnings-list/today-earnings-list.component";


const merchantRoutings: Routes = [
  {path: '', redirectTo: 'cumulative-income', pathMatch: 'full'}
  , {path: 'cumulative-income', component: CumulativeIncomeComponent} // 累计收益
  , {path: 'left-day-income', component: LeftDayIncomeComponent} // 左日收益
  , {path: 'real-income', component: RealIncomeComponent} // 实时进帐
  , {path: 'total-turnover', component: TotalTurnoverComponent} // 总营业额
  , {path: 'today-earnings-list', component: TodayEarningsListComponent} // 今日收益详情
];

@NgModule({
  imports: [RouterModule.forChild(merchantRoutings)],
  exports: [RouterModule],
  providers: []
})

export class MerchantRoutingModule {
}
